﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jay.Sc2.Bof.Lib.Tools
{
	public class Range
	{
		public int Minimum;
		public int Maximum;
		public Range() { }
		public int Value { set { Minimum = Maximum = value; } }
		public Range(int minimum, int maximum) { Minimum = minimum; Maximum = maximum; }
		public bool IsRange { get { return Minimum != Maximum; } }
		public bool IsNothing { get { return Minimum == 0 && Maximum == 0; } }
		public bool IsNegative { get { return Maximum < 0; } }
		public bool IsPositive { get { return Minimum > 0; } }
		public override string ToString()
		{ return "[" + Minimum + "->" + Maximum + "]"; }
	}
}
